/* 
 * Licensed Materials - Property of IBM 
 * 
 * OCO Source Materials 
 * 
 * (C) Copyright IBM Corp. 2011, 2012 All Rights Reserved 
 * 
 * The source code for this program is not published or other- 
 * wise divested of its trade secrets, irrespective of what has 
 * been deposited with the U.S. Copyright Office. 
 */

package com.ibm.ba.demo.exception;



public class GeneralException extends RuntimeException {

	/**
	 * GeneralException is the global exception class.
	 * 
	 * @author Luyi
	 */
	private static final long serialVersionUID = 8770593200925348112L;

	private String errorCode;

	public GeneralException(String errorCode) {
		super(errorCode);
		this.errorCode = errorCode;
	}

	public GeneralException(String errorCode, Throwable cause) {

		super(errorCode, cause);
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
